package com.dldata.display.repository.System;

import com.dldata.display.entity.SysHospitalBranchKsEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by 倪继文 on 2017/6/19.
 */
public interface SysHospitalBranchKsDao extends PagingAndSortingRepository<SysHospitalBranchKsEntity,String>,JpaSpecificationExecutor<SysHospitalBranchKsEntity> {

    @Query("select a from SysHospitalBranchKsEntity a where a.yqid=?1")
    public List<SysHospitalBranchKsEntity> getKsByYqId(String yqid);

}
